FROM openjdk:8
MAINTAINER EmoAnaly
ADD /target/ea-report-1.0-SNAPSHOT.jar app.jar
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8

ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ENTRYPOINT ["java","-Xms64m","-Xmx500m","-jar","/app.jar", \
"--spring.config.location=/maven/report/config/application.yml", \
"--logging.path=/maven/report/logs", \
"--loader.path=/maven/commons/lib"]
